#!/usr/bin/python
'''
/*
 * This computer program is the confidential information and proprietary trade
 * secret of VistaraIT LLC.  Possessions and use of this program must  conform
 * strictly to the license agreement between the user and VistaraIT LLC.,  and
 * receipt or possession does not convey any rights to divulge, reproduce,  or
 * allow others to use this program without specific written authorization  of
 * VistaraIT LLC.
 * 
 * Copyright (c) 2014 VistaraIT, Inc. All rights reserved.
 */
'''

from django.conf.urls.defaults import *
#from django.views.generic.simple import direct_to_template

# Uncomment the next two lines to enable the admin:
# from django.contrib import admin
# admin.autodiscover()

urlpatterns = patterns('',
    # Example:
    # (r'^adminui/', include('adminui.foo.urls')),

    # Uncomment the admin/doc line below and add 'django.contrib.admindocs' 
    # to INSTALLED_APPS to enable admin documentation:
    # (r'^admin/doc/', include('django.contrib.admindocs.urls')),

    # Uncomment the next line to enable the admin:
    # (r'^admin/', include(admin.site.urls)),
    
    #Static files
    (r'^applet/(?P<path>.*)$', 'static.serve',{'document_root': '/media/applet'}),
    (r'^css/(?P<path>.*)$', 'static.serve',{'document_root': '/media/css'}),
    (r'^js/(?P<path>.*)$', 'static.serve',{'document_root': '/media/js'}),
    (r'^img/(?P<path>.*)$', 'static.serve',{'document_root': '/media/img'}),
    

    #Setup Section
    (r'^general$', 'admin.admin.general'),
    (r'^network$', 'admin.admin.network'),
    
    #Login Section
    (r'^login$', 'admin.login.loginPage'),
    (r'^doLogin$','admin.login.index'),
    (r'^logout$','admin.login.logout'),
    
    (r'^overridesession$','admin.admin.overrideSession'),


    (r'\s*/?', 'admin.admin.index'),
)
